package com.haiyou.data.sdk.account.log;

import com.haiyou.common.entity.Entity;
import com.haiyou.common.jdbc.DbType;
import com.haiyou.data.common.persister.mysql.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;


/**
 * 登录日志
 */
@ToString
@Setter
@Getter
@Database(alias = DbType.LOG_DB)
@Table(name = "t_log_stage_record", comment = @Comment("关卡统计"),
		indexes = @Index(name = "sed", fields = {"id", "type"}, policy = Index.IndexPolicy.UNIQUE))
public class StageRecordLog implements Entity<String> {

	@Id
	@Comment("玩家uid")
	private String id;

	@Comment("关卡类型")
	private int type;

	@Comment("关卡id")
	private int stageId;

	@Comment
	private Date date;

	@Comment("服务器id")
	private int serverId;
}
